package com.home.school.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.util.List;

import lombok.Data;

@Data
@TableName(value = "t_comment")
public class TComment {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "order_id")
    private Integer orderId;

    @TableField(value = "username")
    private String username;

    @TableField(value = "reply_to")
    private String replyTo;

    @TableField(exist = false)
    private String replyTos;

    @TableField(value = "content")
    private String content;

    @TableField(value = "parent_id")
    private Integer parentId;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;


    @TableField(exist = false)
    private String usernames;

    @TableField(exist = false)
    private List<TComment> commentList;

    public static final String COL_ID = "id";

    public static final String COL_USERNAME = "username";

    public static final String COL_REPLY_TO = "reply_to";

    public static final String COL_CONTENT = "content";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_CREATE_TIME = "create_time";
}